﻿using ICSharpCode.AvalonEdit;

namespace Poet.Views
{
    /// <summary>
    /// Interaction logic for DocumentView.xaml
    /// </summary>
    public partial class DocumentView 
    {
        public TextEditor TextEditor
        {
            get
            {
                return TextEditorContentControl.Content as TextEditor;
            }
        }

        public DocumentView()
        {
            InitializeComponent();
            //GotFocus += OnGotFocus;
            //LostFocus += OnLostFocus;
            Loaded += delegate { DefaultElement.Focus(); };
            //PreviewGotKeyboardFocus += delegate { DefaultElement.Focus(); };
        }
    }
}
